import request from '@/utils/request'

export function selectAlarmTypePieDataByWeek(data) {
  return request({
    url: '/statistic/api/alarm_type/week_pie_data',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}

export function selectAlarmTypePieDataByMonth(data) {
  return request({
    url: '/statistic/api/alarm_type/month_pie_data',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}


export function selectAlarmTypePieData(data) {
  return request({
    url: '/statistic/api/alarm_type/pie_data',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}



export function selectAlarmTypePieDataByDataRange(data) {
  return request({
    url: '/statistic/api/alarm_type/range_pie_data',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}

export function selectAlarmNumRangeBarData(data) {
  return request({
    url: '/statistic/api/alarm_num/range_bar_data',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}

export function selectAlarmNumBarDataByWeek(data) {
  return request({
    url: '/statistic/api/alarm_num/week_bar_data',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}

export function selectAlarmNumBarDataByMonth(data) {
  return request({
    url: '/statistic/api/alarm_num/month_bar_data',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}

export function selectAlarmNumBarData(data) {
  return request({
    url: '/statistic/api/alarm_num/bar_data',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}

export function selectDayAlarmNumList(data) {
  return request({
    url: '/statistic/api/alarm_num/list',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}

export function selectDayAlarmNumListByWeek(data) {
  return request({
    url: '/statistic/api/alarm_num/week_list',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}

export function exportDayAlarmNumListByMonth(data) {
  return request({
    url: '/export/api/alarm_num/month_list',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    responseType: 'blob',
    data: JSON.stringify(data)
  })
}

export function exportDayAlarmNumListByWeek(data) {
  return request({
    url: '/export/api/alarm_num/week_list',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    responseType: 'blob',
    data: JSON.stringify(data)
  })
}

export function exportDayAlarmNumListByDay(data) {
  return request({
    url: '/export/api/alarm_num/day_list',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    responseType: 'blob',
    data: JSON.stringify(data)
  })
}

export function exportDayAlarmNumListIndex(data) {
  return request({
    url: '/export/api/alarm_num/list',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    responseType: 'blob',
    data: JSON.stringify(data)
  })
}

export function selectDayAlarmNumListByMonth(data) {
  return request({
    url: '/statistic/api/alarm_num/month_list',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}

export function selectDayRangeAlarmNumList(data) {
  return request({
    url: '/statistic/api/alarm_num/range_list',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}

export function selectDayRangeAllAlarmNumList(data) {
  return request({
    url: '/statistic/api/alarm_num_line/range_list',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}
